﻿<Application x:Class="Frontend.App"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:src="clr-namespace:Frontend"
    StartupUri="MainWindow.xaml"
    ShutdownMode="OnMainWindowClose" >
    <Application.Resources>
        <src:NotConverter x:Key="NotConverter" />
        <src:BoolToVisibilityConverter x:Key="BoolToVisibilityConverter" />
        
        <SolidColorBrush x:Key="AvailableBrush" Color="{x:Static src:App.AvailableColor}" />
        <SolidColorBrush x:Key="ReservedBrush"  Color="{x:Static src:App.ReservedColor}"/>
        <SolidColorBrush x:Key="UnknownStatusBrush"  Color="{x:Static src:App.UnknownStatusColor}"/>
        
        <LinearGradientBrush x:Key="AvailableWaitListBrush">
            <GradientStop Offset="0" Color="{x:Static src:App.WaitListColor}" />
            <GradientStop Offset="1" Color="{x:Static src:App.AvailableColor}" />
        </LinearGradientBrush>

        <LinearGradientBrush x:Key="ReservedWaitListBrush">
            <GradientStop Offset="0" Color="{x:Static src:App.WaitListColor}" />
            <GradientStop Offset="1" Color="{x:Static src:App.ReservedColor}" />            
        </LinearGradientBrush>

        <LinearGradientBrush x:Key="HighlightedAvailableBrush">
            <GradientStop Offset="0" Color="{x:Static src:App.HighlightColor}" />
            <GradientStop Offset="1" Color="{x:Static src:App.AvailableColor}" />
        </LinearGradientBrush>

        <LinearGradientBrush x:Key="HighlightedReservedBrush">
            <GradientStop Offset="0" Color="{x:Static src:App.HighlightColor}" />
            <GradientStop Offset="1" Color="{x:Static src:App.ReservedColor}" />
        </LinearGradientBrush>

        <LinearGradientBrush x:Key="HighlightedAvailableWaitListBrush">
            <GradientStop Offset="0" Color="{x:Static src:App.HighlightWaitListColor}" />
            <GradientStop Offset="1" Color="{x:Static src:App.AvailableColor}" />
        </LinearGradientBrush>

        <LinearGradientBrush x:Key="HighlightedReservedWaitListBrush">
            <GradientStop Offset="0" Color="{x:Static src:App.HighlightWaitListColor}" />
            <GradientStop Offset="1" Color="{x:Static src:App.ReservedColor}" />
        </LinearGradientBrush>

        <SolidColorBrush x:Key="HighlightedUnknownStatusBrush"  Color="{x:Static src:App.HighlightUnknownStatusColor}"/>
        
    </Application.Resources>
</Application>
